package at.horario.model;

public class Trio implements Comparable<Trio> {
    public int professor = 0;
    public int turma = 0;
    public int horario = 0;
    public int valor = 0;

    /**
     * Method description
     *
     * @param o
     * @return
     */
    public int compareTo(Trio o) {
        return this.valor - o.valor;
    }

    /**
     * Method description
     *
     * @param obj
     * @return
     */
    public boolean equals(Object obj) {
        Trio o = (Trio) obj;

        return (this.horario == o.horario) && (this.professor == o.professor) && (this.turma == o.turma);
    }

}
